const express = require('express')

const app = express()

app.set('view engine', 'ejs')

app.get('/', (req, res) => {
    res.render('form')
})

app.post('/', (req, res) => {
    console.log(req.query)
    const username = req.params['username']
    const password = req.params['password']

    console.log(username, password)
    res.send('成功')
})

app.listen(3000)

